import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Mybutton from '@/components/Mybutton'
import MyTable from '@/components/MyTable'
import MyFastTable from '@/components/MyFastTable'
import Department02 from '@/components/Department02'

/*引入elementui*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/myTable',
      name: 'MyTable',
      component: MyTable
    },
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/mybutton',
      name: 'Mybutton',
      component: Mybutton
    },
    {
      path: '/myFastTable',
      name: 'MyFastTable',
      component: MyFastTable
    },
    {
      path: '/department02',
      name: 'Department02',
      component: Department02
    }
  ]
})
